package cn.juque.datapipeline.mapper;

import cn.juque.datapipeline.entity.TaskGroupInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>任务组信息</li>
 * </ul>
 * {@code @date} 2023-04-02 14:23:40
 **/
@Mapper
public interface TaskGroupInfoMapper extends BaseMapper<TaskGroupInfo> {

    /**
     * 分页查询
     *
     * @param page          : page
     * @param taskGroupInfo : taskGroupInfo
     * @return List<TaskGroupInfo>
     */
    List<TaskGroupInfo> queryGroupInfoList(Page<TaskGroupInfo> page, @Param("ew") TaskGroupInfo taskGroupInfo);

    /**
     * 查询
     *
     * @param taskGroupInfo : taskGroupInfo
     * @return List<TaskGroupInfo>
     */
    List<TaskGroupInfo> queryGroupInfoList(@Param("ew") TaskGroupInfo taskGroupInfo);
}
